/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.portlet.model;

import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.ModelWrapper;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link quycachSP}.
 * </p>
 *
 * @author    Thi
 * @see       quycachSP
 * @generated
 */
public class quycachSPWrapper implements quycachSP, ModelWrapper<quycachSP> {
	public quycachSPWrapper(quycachSP quycachSP) {
		_quycachSP = quycachSP;
	}

	public Class<?> getModelClass() {
		return quycachSP.class;
	}

	public String getModelClassName() {
		return quycachSP.class.getName();
	}

	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("maQC", getMaQC());
		attributes.put("tenQC", getTenQC());

		return attributes;
	}

	public void setModelAttributes(Map<String, Object> attributes) {
		String maQC = (String)attributes.get("maQC");

		if (maQC != null) {
			setMaQC(maQC);
		}

		String tenQC = (String)attributes.get("tenQC");

		if (tenQC != null) {
			setTenQC(tenQC);
		}
	}

	/**
	* Returns the primary key of this quycach s p.
	*
	* @return the primary key of this quycach s p
	*/
	public java.lang.String getPrimaryKey() {
		return _quycachSP.getPrimaryKey();
	}

	/**
	* Sets the primary key of this quycach s p.
	*
	* @param primaryKey the primary key of this quycach s p
	*/
	public void setPrimaryKey(java.lang.String primaryKey) {
		_quycachSP.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the ma q c of this quycach s p.
	*
	* @return the ma q c of this quycach s p
	*/
	public java.lang.String getMaQC() {
		return _quycachSP.getMaQC();
	}

	/**
	* Sets the ma q c of this quycach s p.
	*
	* @param maQC the ma q c of this quycach s p
	*/
	public void setMaQC(java.lang.String maQC) {
		_quycachSP.setMaQC(maQC);
	}

	/**
	* Returns the ten q c of this quycach s p.
	*
	* @return the ten q c of this quycach s p
	*/
	public java.lang.String getTenQC() {
		return _quycachSP.getTenQC();
	}

	/**
	* Sets the ten q c of this quycach s p.
	*
	* @param tenQC the ten q c of this quycach s p
	*/
	public void setTenQC(java.lang.String tenQC) {
		_quycachSP.setTenQC(tenQC);
	}

	public boolean isNew() {
		return _quycachSP.isNew();
	}

	public void setNew(boolean n) {
		_quycachSP.setNew(n);
	}

	public boolean isCachedModel() {
		return _quycachSP.isCachedModel();
	}

	public void setCachedModel(boolean cachedModel) {
		_quycachSP.setCachedModel(cachedModel);
	}

	public boolean isEscapedModel() {
		return _quycachSP.isEscapedModel();
	}

	public java.io.Serializable getPrimaryKeyObj() {
		return _quycachSP.getPrimaryKeyObj();
	}

	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_quycachSP.setPrimaryKeyObj(primaryKeyObj);
	}

	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _quycachSP.getExpandoBridge();
	}

	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_quycachSP.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new quycachSPWrapper((quycachSP)_quycachSP.clone());
	}

	public int compareTo(quycachSP quycachSP) {
		return _quycachSP.compareTo(quycachSP);
	}

	@Override
	public int hashCode() {
		return _quycachSP.hashCode();
	}

	public com.liferay.portal.model.CacheModel<quycachSP> toCacheModel() {
		return _quycachSP.toCacheModel();
	}

	public quycachSP toEscapedModel() {
		return new quycachSPWrapper(_quycachSP.toEscapedModel());
	}

	public quycachSP toUnescapedModel() {
		return new quycachSPWrapper(_quycachSP.toUnescapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _quycachSP.toString();
	}

	public java.lang.String toXmlString() {
		return _quycachSP.toXmlString();
	}

	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_quycachSP.persist();
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}

		if (!(obj instanceof quycachSPWrapper)) {
			return false;
		}

		quycachSPWrapper quycachSPWrapper = (quycachSPWrapper)obj;

		if (Validator.equals(_quycachSP, quycachSPWrapper._quycachSP)) {
			return true;
		}

		return false;
	}

	/**
	 * @deprecated Renamed to {@link #getWrappedModel}
	 */
	public quycachSP getWrappedquycachSP() {
		return _quycachSP;
	}

	public quycachSP getWrappedModel() {
		return _quycachSP;
	}

	public void resetOriginalValues() {
		_quycachSP.resetOriginalValues();
	}

	private quycachSP _quycachSP;
}